<div class="table-responsive" style="overflow-x: visible;">
    <table class="table table-bordered table-hover">
        <tbody>
        <tr>
            <th class="hidden-xs">
                <label><input onchange="checkAll()" type="checkbox" value=""></label>
            </th>
            <th>ID</th>
            <th>模块名称</th>
            <th>别名</th>
            <th>ICON</th>
            <th>版本</th>
            <th>开发者</th>
            <th>前台入口</th>
            <th>后台入口</th>
            <th>已安装</th>
            <th>操作</th>
        </tr>

        {{#each records}}
        <tr>
            <td class="hidden-xs">
                <label><input name="checkbox" class="check" type="checkbox" value="{{id}}"></label>
            </td>
            <td>{{id}}</td>
            <td>{{name}}</td>
            <td>{{alias}}</td>
            <td><i class="fa fa-2x fa-{{icon}}"/></td>
            <td>{{version}}</td>
            <td>{{developer}}</td>
            <td>
                {{#if entry}}
                    <a href="{{entry}}" target="_blank">{{entry}}</a>
                {{/if}}
            </td>
            <td>
                {{#if adminEntry}}
                    <a href="{{adminEntry}}">{{adminEntry}}</a>
                {{/if}}
            </td>
            <td>
                {{#if isSetup}}
                    {{#if canUninstall}}
                        <button onclick="uninstallModule('{{id}}')" title="卸载模块" class="btn btn-success"><span class="glyphicon glyphicon-ok"/> </button>
                    {{else}}
                        <button title="不可卸载" class="btn btn-success" disabled="disabled"><span class="glyphicon glyphicon-ok"/> </button>
                    {{/if}}
                {{else}}
                    <button onclick="installModule('{{id}}')" title="安装模块" class="btn btn-danger" ><span class="glyphicon glyphicon-remove"/></button>
                {{/if}}
            </td>
            <td class="table-action">
                <a href="/admin/module/add?id={{id}}" class="btn btn-primary">编辑</a>
                {{#if canUninstall}}
                    <button onclick="deleteModule('{{id}}')" class="btn btn-danger" >删除</button>
                {{else}}
                    <button title="不可删除" class="btn btn-danger" disabled="disabled">删除</button>

                {{/if}}
            </td>
        </tr>
        {{/each}}

        </tbody>
    </table>
    <div class="box-footer no-padding">
        <div class="mailbox-controls">
            <div class="pull-right">
                {{{pager}}}
            </div>
        </div>
    </div>
</div>